import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { InformationService } from 'src/app/service/information.service';
import { MessageService } from 'src/app/service/message.service';

const informationTypeEnum = {
  NOTICE02: '信息公告',	
  YYWD: '营业网点',	
  GSJJ: '公司简介',	
  KFRX: '客服热线',	
  z003_BUSI_GUIDE01: '业务办理指南',	
  z003_LAWS_ZCFG: '政策法规',	
  zc003_REGU_WATER: '用水指南',	
  zc003_WATERNOTICE_SZ: '水质公告',	
  zc003_NOTICE: '停水公告',	
  Waterprice: '水价信息'	
}

@Component({
  selector: 'app-information-list',
  templateUrl: './information-list.component.html',
  styleUrls: ['./information-list.component.scss']
})
export class InformationListComponent implements OnInit {

  constructor(
    private information: InformationService,
    private message: MessageService,
    private router: Router,
    private route: ActivatedRoute
  ) { }
  columnName = ''
  noInformation = false
  ngOnInit(): void {
 
  }

  pageNumber = 1
  pageSize = 10
  @Input() informationType = 'XXGG'
  publishChannel = 'OBH'
  total = 0

  informationList: any = []

  

  goDetail(item: any){
    this.router.navigate(['/information/detail'])
  }

}
